//
//  DriverOrderViewModel.m
//  Park
//
//  Created by 123456 on 2017/11/6.
//  Copyright © 2017年 YTYangK. All rights reserved.
//

#import "DriverOrderViewModel.h"

@implementation DriverOrderViewModel


+(void)requestWithUrlForDriverOrder:(id)obj andParam:(NSDictionary *)param success:(void(^)(NSMutableArray *model))success failure:(void(^)(NSString *error))failure{
    
    [NetRequestClss requestWithUrl:@"app/reserveList.do?" requestWithParameters:param method:NetMethodGET returnSuccess:^(id objs, int status, NSString *mag) {
        
        NSLog(@"%@",objs);
        
        if ([objs[@"result"] isEqualToString:@"success"]) {
            success(objs[@"body"][@"reserveDps"]);
            
        }else{
            failure(objs[@"msg"]);
            
        }
        
        
    } returnError:^(NSString *err) {
        failure(err);
        
    }];
    
    
}


@end
